.class public Lcom/TwinBlade/PicturePassword/e;
.super Landroid/app/Dialog;
.source "SourceFile"


# static fields
.field static final a:[I

.field static final b:[I

.field private static e:Ljava/lang/String;

.field private static f:Ljava/lang/String;


# instance fields
.field private c:Lcom/TwinBlade/PicturePassword/j;

.field private d:I

.field private g:Landroid/content/Context;

.field private h:Landroid/widget/EditText;

.field private i:Lcom/TwinBlade/PicturePassword/i;

.field private j:Landroid/widget/SeekBar;

.field private k:Lcom/TwinBlade/PicturePassword/j;

.field private l:Landroid/widget/SeekBar$OnSeekBarChangeListener;

.field private m:Landroid/text/TextWatcher;


# direct methods
.method static constructor <clinit>()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 40
    const-string v0, "Tap on center color to confirm.\nPress back to cancel"

    sput-object v0, Lcom/TwinBlade/PicturePassword/e;->e:Ljava/lang/String;

    .line 41
    const-string v0, "Pick a color"

    sput-object v0, Lcom/TwinBlade/PicturePassword/e;->f:Ljava/lang/String;

    .line 341
    new-array v0, v3, [I

    .line 342
    const v1, 0x101009c

    aput v1, v0, v2

    .line 341
    sput-object v0, Lcom/TwinBlade/PicturePassword/e;->a:[I

    .line 344
    new-array v0, v3, [I

    .line 345
    const v1, 0x10100a7

    aput v1, v0, v2

    .line 344
    sput-object v0, Lcom/TwinBlade/PicturePassword/e;->b:[I

    .line 346
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/TwinBlade/PicturePassword/j;I)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 250
    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    .line 292
    new-instance v0, Lcom/TwinBlade/PicturePassword/f;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/f;-><init>(Lcom/TwinBlade/PicturePassword/e;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->k:Lcom/TwinBlade/PicturePassword/j;

    .line 303
    new-instance v0, Lcom/TwinBlade/PicturePassword/g;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/g;-><init>(Lcom/TwinBlade/PicturePassword/e;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->l:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    .line 316
    new-instance v0, Lcom/TwinBlade/PicturePassword/h;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/h;-><init>(Lcom/TwinBlade/PicturePassword/e;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->m:Landroid/text/TextWatcher;

    .line 251
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    .line 252
    iput-object p2, p0, Lcom/TwinBlade/PicturePassword/e;->c:Lcom/TwinBlade/PicturePassword/j;

    .line 253
    iput p3, p0, Lcom/TwinBlade/PicturePassword/e;->d:I

    .line 254
    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/e;Ljava/lang/String;)I
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 224
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/e;->a(Ljava/lang/String;)I

    move-result v0

    return v0
.end method

.method private a(Ljava/lang/String;)I
    .locals 8
    .parameter

    .prologue
    const/4 v7, 0x6

    const/4 v6, 0x4

    const/4 v5, 0x2

    const/4 v0, -0x1

    const/16 v4, 0x10

    .line 226
    .line 228
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x8

    if-ne v1, v2, :cond_0

    .line 229
    const/4 v0, 0x0

    invoke-virtual {p1, v0, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v3

    .line 230
    invoke-virtual {p1, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v2

    .line 231
    invoke-virtual {p1, v6, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v1

    .line 232
    const/16 v0, 0x8

    invoke-virtual {p1, v7, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v0

    .line 241
    :goto_0
    invoke-static {v3, v2, v1, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    return v0

    .line 234
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-ne v1, v7, :cond_1

    .line 235
    const/16 v3, 0xff

    .line 236
    const/4 v0, 0x0

    invoke-virtual {p1, v0, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v2

    .line 237
    invoke-virtual {p1, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v1

    .line 238
    invoke-virtual {p1, v6, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v0

    goto :goto_0

    :cond_1
    move v1, v0

    move v2, v0

    move v3, v0

    goto :goto_0
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/e;)Lcom/TwinBlade/PicturePassword/j;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->c:Lcom/TwinBlade/PicturePassword/j;

    return-object v0
.end method

.method private a(I)Ljava/lang/String;
    .locals 7
    .parameter

    .prologue
    const/4 v6, 0x1

    .line 200
    invoke-static {p1}, Landroid/graphics/Color;->alpha(I)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v0

    .line 201
    invoke-static {p1}, Landroid/graphics/Color;->red(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

    .line 202
    invoke-static {p1}, Landroid/graphics/Color;->green(I)I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v2

    .line 203
    invoke-static {p1}, Landroid/graphics/Color;->blue(I)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v3

    .line 205
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    if-ne v4, v6, :cond_0

    .line 206
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "0"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 209
    :cond_0
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v4

    if-ne v4, v6, :cond_1

    .line 210
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "0"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 213
    :cond_1
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v4

    if-ne v4, v6, :cond_2

    .line 214
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "0"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 217
    :cond_2
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    if-ne v4, v6, :cond_3

    .line 218
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "0"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 221
    :cond_3
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "#"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/e;I)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 199
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/e;->a(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic b(Lcom/TwinBlade/PicturePassword/e;)Lcom/TwinBlade/PicturePassword/i;
    .locals 1
    .parameter

    .prologue
    .line 246
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->i:Lcom/TwinBlade/PicturePassword/i;

    return-object v0
.end method

.method static synthetic c(Lcom/TwinBlade/PicturePassword/e;)Landroid/widget/SeekBar;
    .locals 1
    .parameter

    .prologue
    .line 247
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    return-object v0
.end method

.method static synthetic d(Lcom/TwinBlade/PicturePassword/e;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 245
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/e;->h:Landroid/widget/EditText;

    return-object v0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7
    .parameter

    .prologue
    const/16 v4, 0xa

    const/4 v6, 0x1

    .line 257
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    .line 259
    new-instance v0, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 260
    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 261
    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 263
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    .line 264
    const/4 v2, -0x1

    .line 265
    const/4 v3, -0x2

    .line 263
    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 266
    const/4 v2, 0x0

    const/4 v3, 0x5

    invoke-virtual {v1, v4, v2, v4, v3}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 268
    new-instance v2, Landroid/widget/TextView;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 269
    sget-object v3, Lcom/TwinBlade/PicturePassword/e;->e:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 270
    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 272
    new-instance v2, Lcom/TwinBlade/PicturePassword/i;

    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/e;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/e;->k:Lcom/TwinBlade/PicturePassword/j;

    iget v5, p0, Lcom/TwinBlade/PicturePassword/e;->d:I

    invoke-direct {v2, p0, v3, v4, v5}, Lcom/TwinBlade/PicturePassword/i;-><init>(Lcom/TwinBlade/PicturePassword/e;Landroid/content/Context;Lcom/TwinBlade/PicturePassword/j;I)V

    iput-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->i:Lcom/TwinBlade/PicturePassword/i;

    .line 273
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->i:Lcom/TwinBlade/PicturePassword/i;

    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 275
    new-instance v2, Landroid/widget/SeekBar;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/widget/SeekBar;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    .line 276
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    const/16 v3, 0xff

    invoke-virtual {v2, v3}, Landroid/widget/SeekBar;->setMax(I)V

    .line 277
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    new-instance v3, Lcom/TwinBlade/PicturePassword/l;

    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    .line 278
    const-string v5, "alpha"

    invoke-direct {v3, v4, v5, v6}, Lcom/TwinBlade/PicturePassword/l;-><init>(Landroid/content/res/Resources;Ljava/lang/String;Z)V

    .line 277
    invoke-virtual {v2, v3}, Landroid/widget/SeekBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 279
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/e;->d:I

    invoke-static {v3}, Landroid/graphics/Color;->alpha(I)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 280
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/e;->l:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    invoke-virtual {v2, v3}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 281
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->j:Landroid/widget/SeekBar;

    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 283
    new-instance v2, Landroid/widget/EditText;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/e;->g:Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->h:Landroid/widget/EditText;

    .line 284
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->h:Landroid/widget/EditText;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/e;->m:Landroid/text/TextWatcher;

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 285
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->h:Landroid/widget/EditText;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/e;->d:I

    invoke-direct {p0, v3}, Lcom/TwinBlade/PicturePassword/e;->a(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 286
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/e;->h:Landroid/widget/EditText;

    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 288
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/e;->setContentView(Landroid/view/View;)V

    .line 289
    sget-object v0, Lcom/TwinBlade/PicturePassword/e;->f:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/e;->setTitle(Ljava/lang/CharSequence;)V

    .line 290
    return-void
.end method
